package com.seckill.vo;

import com.seckill.validator.IsMobile;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
 * 登陆参数
 *
 * @author yangjunwei
 * @date 2021/10/29 4:29 下午
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginVo {

    /**
     * 手机号(自定义校验注解)
     */
    @NotNull
    @IsMobile
    private String mobile;

    /**
     * 登陆密码
     */
    @NotNull
    @Length(max = 32)
    private String password;

    /**
     * 验证码
     */
    private String verify;


}
